﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Roboter
{
    public enum FieldState
    {
        blocked,
        robot ,
        free
    }

    class Field
    {
        private FieldState state;

        public FieldState State
        {
          get { return state; }
          set { state = value; }
        }
   
        public Field(FieldState state)
        {
            this.state = state;
        }

        public bool IsBlocked
        {
            get 
            {
                if (this.state == FieldState.blocked || this.state == FieldState.robot)
                {
                    return true;
                }
                else
                {
                    return false;
                };
            }
        }
    }
}
